package com.soboot.collect.provider.processor;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;

/**
 * @Author:
 * @createTime: 2022年12月09日 17:04:45
 * @version:
 * @Description:
 * @Copyright:
 */
public class TbProcessor {

    public static void main(String[] args) throws Exception{
        Document doc = Jsoup.connect("http://tieba.baidu.com/f?ie=utf-8&kw=%E9%83%91%E7%A7%80%E5%A6%8D")//桂工吧网址
                .userAgent(                          "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.15)")
                .timeout(3000)           // 设置连接超时时间
                .get();

        for(Element e: doc.getAllElements()){
            System.out.println(e.html());
        }

    }

}
